<?php
/**
 * Created by PhpStorm.
 * User: Win10 - Jeffery 13..@qq.com
 * Date: 2019/11/16
 * Time: 14:40
 */
namespace addons\ceshi\controller;
use addons\BaseController;
use think\App;
use think\Db;

class Admin extends BaseController
{
    public function initialize()
    {
        echo 88;
        parent::initialize();
    }

    # 管理入口
    public function manage()
    {
        return view('../addons/ceshi/view/admin/manage.html', []);
    }

    # 测试提交
    public function add()
    {
        $data = [
            'name'  => 'thinkphp',
            'telphone'   => 121,
        ];
//        $validate = new ShopValidate();
//        $result = $validate->check($data);
//        if(!$result){
//            echo $validate->getError();
//        }
//        ShopModel::create($data);
//        $this->success('操作成功');
    }

    public function link()
    {
        echo '试试访问该插件这个link的东西';
    }
}